package com.quan.upms.rpc.dao.mapper;

import java.util.List;

import com.quan.base.common.base.dao.support.BaseMapper;
import com.quan.upms.rpc.model.UpmsCompany;

public interface UpmsCompanyMapper extends BaseMapper<UpmsCompany, Integer> {
	
	/**
	 * 查询所有根节点
	 * @return
	 */
	public List<UpmsCompany> selectRoot() ;

	/**
	 * 根据父ID查询子节点
	 * @param pid
	 * @return
	 */
	public List<UpmsCompany> selectChildren(Integer pid) ;
	
}